#include "list/quadList.h"
#include "list/symbolList.h"
#include "list/intList.h"
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <stdlib.h>
#include "lexicalAnalyzer.h"
#include "symbol.h"
#include "syntacticAnalyzer.h"
#include "quad.h"
#include "symbolTable.h"
#include "code.h"

extern int yyparse();


int main()
{
  initTable();
  initCode();
  printTable();

  printf("throwing parser...\n");
  yyparse();
  printf("done\n");
  printf("\n\n****************TABLE CONTENT**************\n");
  printTable();
  printf("\n\n**********CODE CONTENT**************\n");
  printCode();

  /* to be implemented */
  /* freeTable(); */
  /* freeCode(); */
  return 0;
}
